package com.quick.proxy.core;

import io.netty.channel.Channel;
import io.netty.util.AttributeKey;

import java.util.List;
import java.util.Map;

/**
 * Description: channel绑定信息
 * Author: 吃素不吃肉
 * Date: 2023/6/30
 *
 * @author 吃素不吃肉
 */
public class ChannelAttribute {
    /**
     * 访问者id
     */
    public static final AttributeKey<String> VISITOR_ID = AttributeKey.valueOf("visitorId");

    /**
     * 访问者通道绑定代理通道
     */
    public static final AttributeKey<List<Channel>> VISITOR_CHANNEL = AttributeKey.valueOf("visitorChannel");
    /**
     * accessKey绑定代理通道
     */
    public static final AttributeKey<String> ACCESS_KEY_PROXY_CHANNEL = AttributeKey.valueOf("accessKeyProxyChannel");
    /**
     * 代理通道绑定访问者id的真实代理通道
     */
    public static final AttributeKey<Map<String, Channel>> VISITOR_ID_REAL_PROXY_CHANNEL = AttributeKey.valueOf("visitorIdRealProxyChannel");

}
